Skip to content

Add Item #9 - minimize boxing and unboxing #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
Jul 24, 2024

Conversation

rjmurillo
Copy link
Owner

Add analyzers to find cases when boxing occurs in source code

This catches some boxing behavior. There are implicit boxing and copy by value semantics at play when mixing value and reference types. There is more prescriptive guidance and opinions in the book, which is not caught by this implementation of the analyzer. An opinionated default and code fix will be implemented by another analyzer library.

Resolves BillWagner/EffectiveCSharpAnalyzers#9

@rjmurillo rjmurillo added documentation Improvements or additions to documentation analyzers releasable feature labels Jul 17, 2024
@rjmurillo rjmurillo enabled auto-merge (squash) July 17, 2024 20:54
Copy link

codacy-production bot commented Jul 17, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+2.15% (target: -1.00%) 90.63%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (0332f4b) 229 165 72.05%
Head commit (b380ff1) 283 (+54) 210 (+45) 74.20% (+2.15%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#15) 64 58 90.63%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences


🚀 Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@rjmurillo rjmurillo added this to the vNext milestone Jul 23, 2024
@rjmurillo rjmurillo self-assigned this Jul 23, 2024
@rjmurillo rjmurillo disabled auto-merge July 23, 2024 23:43
@rjmurillo rjmurillo enabled auto-merge (squash) July 24, 2024 07:37
@rjmurillo rjmurillo disabled auto-merge July 24, 2024 16:48
@rjmurillo rjmurillo enabled auto-merge (squash) July 24, 2024 16:48
@rjmurillo rjmurillo disabled auto-merge July 24, 2024 16:50
@rjmurillo rjmurillo merged commit cff00c7 into main Jul 24, 2024
7 checks passed
@rjmurillo rjmurillo deleted the feature/use-null-conditional-operator branch July 24, 2024 17:07
@rjmurillo rjmurillo linked an issue Jul 31, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzers build documentation Improvements or additions to documentation releasable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

09 - Minimize boxing and unboxing Item 9: Minimize Boxing and Unboxing
1 participant